﻿/// <reference name="MicrosoftAjax.js"/>
/// <reference name="Dimok.Web.UI.JS.JQuery.VSDoc.js" assembly="Dimok.Web.UI" />
/// <reference name="Dimok.Web.UI.JS.MSAjaxExtentions.js" assembly="Dimok.Web.UI" />
/// <reference path="../../JS/UI/Dimok.PageEvents.js" />
Type.registerNamespace("motobankcorp");
motobankcorp.PaymentTransactions = function(element) {
motobankcorp.PaymentTransactions.initializeBase(this, [element]);
}
motobankcorp.PaymentTransactions.prototype = {
  _wireEvents: function() {
    Dimok.FindPageEvents().add_loanSelected(Function.createDelegate(this, function(sender, eventArgs) {
      this.get_RGE().set_filterTemp("LoanID", eventArgs.get_keys().get_LoanID());
    }));
    Dimok.FindPageEvents().add_loanDeselected(Function.createDelegate(this, function(sender, eventArgs) {
      this.get_RGE().set_filterTemp("LoanID", undefined);
    }));
    Dimok.FindPageEvents().add_paymentSelected(Function.createDelegate(this, function(sender, eventArgs) {
      this.get_RGE().set_filterTemp("PaymentID", eventArgs.get_keys().get_ID());
    }));
    Dimok.FindPageEvents().add_paymentDeselected(Function.createDelegate(this, function(sender, eventArgs) {
      this.get_RGE().set_filterTemp("PaymentID", undefined);
    }));
  },
  initialize: function() {
    motobankcorp.PaymentTransactions.callBaseMethod(this, 'initialize');
    this._wireEvents();
  },
  dispose: function() {
    motobankcorp.PaymentTransactions.callBaseMethod(this, 'dispose');
  }
}
motobankcorp.PaymentTransactions.registerClass('motobankcorp.PaymentTransactions', Dimok.Table);
